/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';
import { UploadApiResult } from '../sys/upload';
import { UploadFileParams } from '/#/axios';

const { ctxPath, adminPath } = useGlobSetting();

export interface FtdsYjmxjjfqd extends BasicModel<FtdsYjmxjjfqd> {
  yjmxjjfqdYgzt?: string; // 原告主体
  yjmxjjfqdPt?: string; // 平台
  yjmxjjfqdDdh?: string; // 订单号
  yjmxjjfqdBsqr?: string; // 被申请人
  yjmxjjfqdSfzh?: string; // 身份证号
  yjmxjjfqdBsqrlxfs?: string; // 被申请人联系方式
  yjmxjjfqdFyld?: string; // 法院来电
  yjmxjjfqdSjr?: string; // 收件人
  yjmxjjfqdLxfs?: string; // 法院联系方式
  yjmxjjfqdFy?: string; // 法院
  yjmxjjfqdYjcl?: string; // 邮寄材料
  yjmxjjfqdSfyyj?: string; // 是否已邮寄
  yjmxjjfqdYjrq?: string; // 邮寄日期
  yjmxjjfqdDh?: string; // 单号
  yjmxjjfqdKdf?: string; // 快递费
  yjmxjjfqdSfjf?: string; // 是否缴费
  yjmxjjfqdJfje?: string; // 缴费金额
  yjmxjjfqdJfrq?: string; // 缴费日期
  yjmxjjfqdAh?: string; // 案号
  yjmxjjfqdGs?: string; // 归属
}

export const ftdsYjmxjjfqdList = (params?: FtdsYjmxjjfqd | any) =>
  defHttp.get<FtdsYjmxjjfqd>({ url: adminPath + '/operating/ftdsYjmxjjfqd/list', params });

export const ftdsYjmxjjfqdListData = (params?: FtdsYjmxjjfqd | any) =>
  defHttp.post<Page<FtdsYjmxjjfqd>>({ url: adminPath + '/operating/ftdsYjmxjjfqd/listData', params });

export const ftdsYjmxjjfqdForm = (params?: FtdsYjmxjjfqd | any) =>
  defHttp.get<FtdsYjmxjjfqd>({ url: adminPath + '/operating/ftdsYjmxjjfqd/form', params });

export const ftdsYjmxjjfqdSave = (params?: any, data?: FtdsYjmxjjfqd | any) =>
  defHttp.postJson<FtdsYjmxjjfqd>({ url: adminPath + '/operating/ftdsYjmxjjfqd/save', params, data });

export const ftdsYjmxjjfqdImportData = (
  params: UploadFileParams,
  onUploadProgress: (progressEvent: ProgressEvent) => void,
) =>
  defHttp.uploadFile<UploadApiResult>(
    {
      url: ctxPath + adminPath + '/operating/ftdsYjmxjjfqd/importData',
      onUploadProgress,
    },
    params,
  );

export const ftdsYjmxjjfqdDelete = (params?: FtdsYjmxjjfqd | any) =>
  defHttp.get<FtdsYjmxjjfqd>({ url: adminPath + '/operating/ftdsYjmxjjfqd/delete', params });
